import request from '@/utils/request'
// aa
export function findByPage(query) {
  return request({
    url: '/account/select',
    // 123456
    method: 'get',
    params: query // 表单数据
  })
}

export function deleteUser(userId) {
  console.log(userId)
  return request({
    url: '/account/delete',
    method: 'get',
    params: { 'userId': userId }// form
  })
}
export function addUser(data) {
  return request({
    url: '/account/register',
    method: 'post',
    data// json
  })
}

export function updateUser(data) {
  return request({
    url: '/account/update',
    method: 'post',
    data// json
  })
}

export function findAllList() {
  return request({
    url: '/user/findAllList',
    method: 'get'
  })
}
